{% extends 'mpa/common/base.html' %}
{% load static %}

{% block content %}
        <div class="wrapper">
            <div class="container">

                <!-- Page-Title -->
                <div class="row">
                    <div class="col-sm-12">
                        <div class="btn-group pull-right">
                            <button type="button" class="btn btn-primary dropdown-toggle waves-effect waves-light" data-toggle="dropdown" aria-expanded="false">Settings <span class="m-l-5"><i class="fa fa-cog"></i></span></button>
                            <ul class="dropdown-menu" role="menu">
                                <li><a href="#">Action</a></li>
                                <li><a href="#">Another action</a></li>
                                <li><a href="#">Something else here</a></li>
                                <li class="divider"></li>
                                <li><a href="#">Separated link</a></li>
                            </ul>
                        </div>
                        <h4 class="page-title">X-Editable </h4>
                    </div>
                </div>


                <div class="row">
                    <div class="col-lg-6">
                        <div class="panel panel-border panel-primary">
                            <div class="panel-heading">
                                <h3 class="panel-title">Inline Editor</h3>
                            </div>
                            <div class="panel-body">
                               <form action="#" class="form-horizontal">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">Simple Text Field</label>
                                    <div class="col-sm-9">
                                        <a href="#" id="inline-username" data-type="text" data-pk="1" data-title="Enter username">superuser</a>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">Empty text field, required</label>
                                    <div class="col-sm-9">
                                        <a href="#" id="inline-firstname" data-type="text" data-pk="1" data-placement="right" data-placeholder="Required" data-title="Enter your firstname"></a>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">Select, local array, custom display</label>
                                    <div class="col-sm-9">
                                        <a href="#" id="inline-sex" data-type="select" data-pk="1" data-value="" data-title="Select sex"></a>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">Select, error while loading</label>
                                    <div class="col-sm-9">
                                        <a href="#" id="inline-status" data-type="select" data-pk="1" data-value="0" data-source="/status" data-title="Select status">Active</a>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">Combodate</label>
                                    <div class="col-sm-9">
                                        <a href="#" id="inline-dob" data-type="combodate" data-value="1984-05-15" data-format="YYYY-MM-DD" data-viewformat="DD/MM/YYYY" data-template="D / MMM / YYYY" data-pk="1" data-title="Select Date of birth"></a>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">Textarea, buttons below. Submit by <i>ctrl+enter</i></label>
                                    <div class="col-sm-9">
                                        <a href="#" id="inline-comments" data-type="textarea" data-pk="1" data-placeholder="Your comments here..." data-title="Enter comments">awesome user!</a>
                                    </div>
                                </div>
                            </form>
                            </div>
                        </div>
                    </div>

                    <div class="col-lg-6">
                        <div class="panel panel-border panel-primary">
                            <div class="panel-heading">
                                <h3 class="panel-title">Popover Editor</h3>
                            </div>
                            <div class="panel-body">
                                <form action="#" class="form-horizontal editor-horizontal">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">Simple Text Field</label>
                                    <div class="col-sm-9">
                                        <a href="#" id="username" data-type="text" data-pk="1" data-title="Enter username">superuser</a>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">Empty text field, required</label>
                                    <div class="col-sm-9">
                                        <a href="#" id="firstname" data-type="text" data-pk="1" data-placement="right" data-placeholder="Required" data-title="Enter your firstname"></a>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">Select, local array, custom display</label>
                                    <div class="col-sm-9">
                                        <a href="#" id="sex" data-type="select" data-pk="1" data-value="" data-title="Select sex"></a>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">Select, error while loading</label>
                                    <div class="col-sm-9">
                                        <a href="#" id="status" data-type="select" data-pk="1" data-value="0" data-source="/status" data-title="Select status">Active</a>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">Combodate</label>
                                    <div class="col-sm-9">
                                        <a href="#" id="dob" data-type="combodate" data-value="1984-05-15" data-format="YYYY-MM-DD" data-viewformat="DD/MM/YYYY" data-template="D / MMM / YYYY" data-pk="1" data-title="Select Date of birth"></a>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">Textarea, buttons below. Submit by <i>ctrl+enter</i></label>
                                    <div class="col-sm-9">
                                        <a href="#" id="comments" data-type="textarea" data-pk="1" data-placeholder="Your comments here..." data-title="Enter comments">awesome user!</a>
                                    </div>
                                </div>
                            </form>
                            </div>
                        </div>
                    </div>

                </div> <!-- end row -->
            </div>
            <!-- end container -->
        </div>
        <!-- end wrapper -->
{% endblock %}

{% block static %}
        <!-- XEditable Plugin -->
        <script src="{% static 'mpa/plugins/moment/moment.js' %}"></script>
        <script type="text/javascript" src="{% static 'mpa/plugins/x-editable/dist/bootstrap3-editable/js/bootstrap-editable.min.js' %}"></script>
        <script type="text/javascript" src="{% static 'mpa/pages/jquery.xeditable.js' %}"></script>
{% endblock %}